DevForce Help Reference
Any<T>(IEntityQuery<T>) Method
Example 


Determines whether a sequence contains any elements.
Syntax
'Declaration
 
<ExtensionAttribute()>
Public Overloads Shared Function Any(Of T)( _
   ByVal source As IEntityQuery(Of T) _
) As Boolean
'Usage
 
Dim source As IEntityQuery(Of T)
Dim value As Boolean
 
value = EntityQueryExtensions.Any(Of T)(source)
[Extension()]
public static bool Any<T>( 
   IEntityQuery<T> source
)

Parameters

source

Type Parameters

T
Example
var mgr1 = new DomainModelEntityManager();
bool any = mgr1.Customers.Any();
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntityQueryExtensions Class
EntityQueryExtensions Members
Overload List

Send Feedback